﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Dynamic;
using System.Globalization;
using System.Linq;
using System.Text;
using BaseData.Models;
namespace BaseData.Exts
{
    public class DataGridSourceMember<T> : Web_Base_Account_Member
    {
        public DataGridSourceMember()
        {
            this.left = false;
            this.right = false;
            this.side = false;
            this.selected = false;
            this.status = 0;
        }
        public bool left { get; set; }
        public string leftText { get; set; }
        public bool right { get; set; }
        public string rightText { get; set; }
        public bool side { get; set; }
        public string sideText { get; set; }
        public bool selected { get; set; }
        public int? flagLevel { get; set; }
    }
    #region Example
    /*
    //一、基本表【由工具生成，不能改变】
    //----------------------------------------------------
    //基本表一：用户信息【由工具生成，不能改变】
    public class UserInfo
    {
        public int id { get; set; }
        public string Name { get; set; }
        public string UserPass { get; set; }
    }
    //基本表二：用户留言【由工具生成，不能改变】
    public class UserBook
    {
        public int id { get; set; }
        public string Title { get; set; }
        public string Text { get; set; }
    }
    //基本表三：用户产品【由工具生成，不能改变】
    public class UserProduct
    {
        public int id { get; set; }
        public string ProductName { get; set; }
        public string ProductPrice { get; set; }
    }
    //二、场景
    //---------------------------------------------------
    //场景一：继承UserInfo
    public class DataGrid1 : UserInfo
    {
        public int flag { get; set; }
        public string memo { get; set; }
    }
    //场景二：继承UserBook
    public class DataGrid2 : UserBook
    {
        public int flag { get; set; }
        public string memo { get; set; }
    }
    //场景三：继承UserProduct
    public class DataGrid3 : UserProduct
    {
        public int flag { get; set; }
        public string memo { get; set; }
    }
    //三、应用
    //----------------------------------------------------
    public class Tests
    {
        public void Test()
        {
            var item1 = new DataGrid1();
            var item2 = new DataGrid2();
            var item3 = new DataGrid3();
        }
    }
    */
    #endregion
}
